TARGET=mdv-install

${TARGET}.pdf: ${TARGET}.tex
	pdflatex ${TARGET}.tex
	pdflatex ${TARGET}.tex
#	pdflatex ${TARGET}.tex
for-easy-print: ${TARGET}.pdf
	pdf2ps ${TARGET}.pdf
	psbook -q ${TARGET}.ps | psnup -q -2 > tmp.ps && ps2ps -sPAPERSIZE=a4 tmp.ps book.ps \
	&& rm -f tmp.ps && ps2pdfpress -sPAPERSIZE=a4 book.ps && rm -f book.ps
clean:
	rm -f ${TARGET}.{pdf,log,toc,aux,out}
